#
# This file was derived from the 'Hello World!' example recipe in the
# Yocto Project Development Manual.
#

SUMMARY = "Simple spitest application"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://spitest.c \
	   file://ttymxc3.c"

S = "${WORKDIR}"

FILES_${PN} += " \
                ${bindir}/spitest \
                ${bindir}/ttymxc3"

do_compile() {
	     ${CC} spitest.c -o spitest 
	     ${CC} ttymxc3.c -o ttymxc3
}

do_install() {
	     install -d ${D}${bindir}
	     install -m 0755 spitest ${D}${bindir}
	     install -m 0755 ttymxc3 ${D}${bindir}
}
